package com.cos.lession68.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/9/22 10:33
 * @description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Dept {
    private int dno;
    private String dname;
    /* 一对多表现形式  1个部门有多个员工 */
    List<Emp> empList;
}
